package cc.yugu.yhdw.webserver.web.controller.security.basic;

import cc.yugu.yhdw.common.annotation.ViewModel;
import cc.yugu.yhdw.common.domain.basic.CustomerInOutMoney;
import cc.yugu.yhdw.common.entity.json.PageResult;
import cc.yugu.yhdw.webserver.service.basic.CustomerInOutMoneyService;
import cc.yugu.yhdw.webserver.web.controller.security.SecurityController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * 客户资金流水控制器
 * 
 * @Date:Created in 2018/7/23 10:55
 * @Author:
 * @Modified By: zjn 2018/7/23 10:55
 */ 
@Controller
@RequestMapping(value = "/security/basic/customer_in_out_money")
public class CustomerInOutMoneyController extends SecurityController {

    @Autowired
    CustomerInOutMoneyService customerInOutMoneyService;

    @RequestMapping(value = "index.htm")
    public void index(Model model) {
    }
    /**
    * 分页查询
    * 
    * @Param: [search]
    * @Return: cc.yugu.yhdw.common.entity.json.PageResult
    * @Author By: zjn 2018/7/23  10:55
    */ 
    @RequestMapping("page.htm")
    @ViewModel(ViewModel.JSON)
    @ResponseBody
    public PageResult page(CustomerInOutMoney search) {
        return PageResult.successResult(customerInOutMoneyService.findPage(search));
    }
}
